﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UIT_CV_Management
{
    public class CheDoHoc
    {
        public String maCheDoHoc;
        public String tenCheDoHoc;

        public CheDoHoc(String _maCheDoHoc, String _tenCheDoHoc)
        {
            maCheDoHoc = _maCheDoHoc;
            tenCheDoHoc = _tenCheDoHoc;
        }
        public static CheDoHoc ChinhQuy()
        {
            CheDoHoc temp = new CheDoHoc("B000000001", "CHEDOHOC_CHINHQUY");
            return temp;
        }
        public static CheDoHoc ChuyenTu()
        {
            CheDoHoc temp = new CheDoHoc("B000000002", "CHEDOHOC_TAICHUC");
            return temp;
        }
        public static CheDoHoc TaiChuc()
        {
            CheDoHoc temp = new CheDoHoc("B000000003", "TaiChuc");
            return temp;
        }
        public static CheDoHoc MoRong()
        {
            CheDoHoc temp = new CheDoHoc("B000000004", "MoRong");
            return temp;
        }
        public static CheDoHoc cheDoHocFormID(String _maCheDoHoc)
        {
            if (_maCheDoHoc == "B000000001")
            {
                CheDoHoc temp = new CheDoHoc("B000000001", "CHEDOHOC_CHINHQUY");
                return temp;
            }
            if (_maCheDoHoc == "B000000002")
            {
                CheDoHoc temp = new CheDoHoc("B000000002", "CHEDOHOC_TAICHUC");
                return temp;
            }
            if (_maCheDoHoc == "B000000003")
            {
                CheDoHoc temp = new CheDoHoc("B000000003", "TaiChuc");
                return temp;
            }
            if (_maCheDoHoc == "B000000004")
            {
                CheDoHoc temp = new CheDoHoc("B000000004", "MoRong");
                return temp;
            }
            return null;

        }
    }
    
}
